﻿using System;

public partial class System_Controls_FieldTemplates_HyperLink : System.Web.UI.UserControl
{
    public string Value
    {
        get { return tb_Value.Text; }
        set { tb_Value.Text = value.ToString(); }
    }
    public string Title
    {
        get { return lb_Title.Text; }
        set { lb_Title.Text = value; }
    }
    public bool IsReq
    {
        get { return rfv.Enabled; }
        set { rfv.Enabled = value; }
    }
    public string RootPath
    {
        get { return FileManager.RootPath; }
        set { FileManager.RootPath = value; }
    }
    public bool ShowFiles
    {
        get { return FileManager.ShowFiles; }
        set { FileManager.ShowFiles = value; }
    }
    public string FileFilter
    {
        get { return FileManager.FileFilter; }
        set { FileManager.FileFilter = value; }
    }
    
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void libSelectPath_Click(object sender, EventArgs e)
    {
        pan_FileManager.Visible = true;
    }
    protected void lib_OK_Click(object sender, EventArgs e)
    {
        Value = FileManager.SelectedVirtualPath;
        tb_Value.Text = Value.ToString();
        pan_FileManager.Visible = false;
    }
    protected void lib_Cancel_Click(object sender, EventArgs e)
    {
        pan_FileManager.Visible = false;
    }
}